Skip to content

docs: add code-ownership agent instruction (trial) - #12

Closed
gisk0 wants to merge 1 commit into
mainfrom
docs/code-ownership-trial
Closed

gisk0 wants to merge 1 commit into
mainfrom
docs/code-ownership-trial

Conversation

@gisk0

@gisk0 gisk0 commented Nov 10, 2026

Copy link
Copy Markdown

tl;dr

Coding agents tend to add new code next to old code and only mention nearby problems. Anthropic found that telling the agent the code is its own made it merge duplicated code far more often. This PR adds that instruction to this repo's agent guide as a trial for every model; approval, review and no-merge rules stay as they are.

The Problem

  • Without an ownership statement, agents add to the existing structure even when that repeats code, and report nearby problems instead of fixing them (Anthropic, Fable 5.2 prompting guide).

The Solution

  • Adds a Code ownership section to AGENTS.md, before the Workflow section. In Anthropic's tests the first sentence raised duplicate-code merging from under a tenth of tries to about half.
  • The second sentence keeps approval, scope sign-off, review and no-merge rules in force, and asks for related fixes in separate commits listed in the PR body.
  • Trial started 2026-11-10 for every model (Claude, Codex and others), not only Fable.
  • Note for the coordinator: workers here are bound to their brief's paths (rules 1 and 6). The block's second sentence keeps that scope binding, and the skein gate enforces paths, but Anthropic notes a scope rule elsewhere does not cancel the ownership sentence. Close this PR if this repo should stay out of the trial.

Reviewers: the same guide reports about 1.5 times the output tokens, unrequested tests and docs, and a changed existing behaviour in one try in six to ten. Review the diff, not the summary, and push back on oversized or out-of-scope PRs.

Validation

  • Passed: git diff --check ✓
  • Not run: build and test suites — the change is Markdown only.
  • Review: light docs gate — one proofread of the diff (wording matches the trial block, placement, no clash with existing rules). No second-model pass for this instruction-only change; that is a deliberate exception.

Risk

  • 🚪 Door: Two-way. Revert this commit to remove the section.
  • 💥 Blast Radius: Agents working in this repo; the worst case is larger diffs that reviewers must split or reject.
  • 👀 Watch: PR size and out-of-scope edits from agents during the trial.

@coderabbitai

coderabbitai Bot commented Nov 10, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI; Enforced overrides: Organization
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2b5c7d1f-e0c3-4f36-8ce1-8ff07c1369d2
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-10T16:51:35.547684Z 854e52d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@gisk0

gisk0 commented Nov 10, 2026

Copy link
Copy Markdown
Author

Closing per Philip: cli and mcp-server are built by parallel workers that must stay inside their assigned files, which conflicts with a codebase-ownership instruction. Excluded from the code-ownership trial.

@gisk0 gisk0 closed this Nov 10, 2026
@gisk0
gisk0 deleted the docs/code-ownership-trial branch November 10, 2026 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant